/*
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
 *
 * This file is part of retabel.
 *
 * Copyright (c) 2011 by individual contributors as indicated by the
 * @author tags. See the copyright.txt file in the distribution
 * for a full listing of individual contributors.
 *
 * This is free software; you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 2.1 of
 * the License, or (at your option) any later version.
 *
 * This software is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this software; if not, write to the Free
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
 */

package org.retabel.ui;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * Rendered document UI bean
 * <p/>
 * <h3>Extra-Info</h3>
 * Created: 20:39 08.09.11
 *
 * @author Peter Herber
 * @version 1.0
 */
public class RenderedDocumentUI {

    /** the unique rendered document document identifier */
    private String documentIdentifier;

    /** the rendered document creation date */
    private Date created;

    /** the rendered document parts associated to this rendered document */
    private List<RenderedDocumentPartUI> renderedDocumentParts = new ArrayList<>();

    // beans

    /**
     * Gets the documentIdentifier.
     *
     * @return The documentIdentifier value.
     */
    public String getDocumentIdentifier() {
        return documentIdentifier;
    }

    /**
     * Sets the renderedDocumentParts.
     *
     * @param newRenderedDocumentParts The renderedDocumentParts value to set.
     */
    public void setRenderedDocumentParts(List<RenderedDocumentPartUI> newRenderedDocumentParts) {
        this.renderedDocumentParts = newRenderedDocumentParts;
    }

    /**
     * Sets the created.
     *
     * @param newCreated The created value to set.
     */
    public void setCreated(Date newCreated) {
        this.created = newCreated;
    }

    /**
     * Sets the documentIdentifier.
     *
     * @param newDocumentIdentifier The documentIdentifier value to set.
     */
    public void setDocumentIdentifier(String newDocumentIdentifier) {
        this.documentIdentifier = newDocumentIdentifier;
    }

    /**
     * Gets the renderedDocumentParts.
     *
     * @return The renderedDocumentParts value.
     */
    public List<RenderedDocumentPartUI> getRenderedDocumentParts() {
        return renderedDocumentParts;
    }

    /**
     * Gets the created.
     *
     * @return The created value.
     */
    public Date getCreated() {
        return created;
    }
}
